<?php

namespace Crm\AuthBundle\Controller;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\SecurityContext;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;


class SecuredController extends Controller
{
    
    public function loginAction(Request $request)
    {
       
         return $this->render('AuthBundle:Auth:login.html.twig');
    }

    
    public function securityCheckAction()
    {
        // The security layer will intercept this request
    }

    
    public function logoutAction()
    {
        // The security layer will intercept this request
    }

    
    public function helloAction($name)
    {
        return array('name' => $name);
    }

    
    public function helloadminAction($name)
    {
        return array('name' => $name);
    }
}
